using System;
using System.Collections.Generic;
using System.Text;
using InfiniTec.Data;

namespace InfiniTec.Expressions
{
    public class NotExpression: OperatorExpression
    {
        public NotExpression(Expression expression) : base(new Expression[] { expression }) { }

        public override bool Evaluate(PropertyCollection data)
        {
            return !Expressions[0].Evaluate(data);
        }
    }
}
